package com.hanggold.quartz;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2019-08-26 16:56
 * @since 1.0.0
 **/
public class QuartzPropertiesMain {


    public static void main(String[] args) throws IOException {

//        InputStream inputStream = QuartzPropertiesMain.class.getClassLoader().getResourceAsStream("org/quartz/quartz" +
//                ".properties");
//
//
//        Properties properties = new Properties();
//
//        properties.load(inputStream);
//
//       String instanceName =  properties.getProperty("org.quartz.scheduler.instanceName");
//
//        System.out.println(inputStream);

        InputStream inputStream = QuartzPropertiesMain.class.getClassLoader().getResourceAsStream("main.properties");
        Properties properties = new Properties();
//
        properties.load(inputStream);

        System.out.println(1);

    }
}
